package com.just.springbootmessage.activemq.m1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 消息监听
 */
@Component
public class M1Receiver {
    private static final Logger logger=LoggerFactory.getLogger(M1Receiver.class);
    @JmsListener(destination = "my-destination")
    public void receiverMessage(String message){
        logger.info("接收到消息：<"+message+">");
    }
}
